package monster.flight.comm.entity.dao;
import java.util.List;
import monster.flight.comm.entity.vo.Xt_dict_detail;

public interface Xt_dict_detailDAO {

	 /**
	*@Description: 根据主键返回po
	*@param id
	*@return Xt_dict_detail
	
	*/
	 public Xt_dict_detail getPoByID(String id);
	 /**
	*@Description: 根据bean返回List，根据bean中DICT_SN则作为查询条件
	*@param po
	*@return List<Xt_dict_detail>
	
	*/
	 public List<Xt_dict_detail> getPoByParams(Xt_dict_detail xt_dict_detail);
	 /**
	*@Description: 新增一条记录
	*@param po
	*@return void
	
	*/
	 public void insert(Xt_dict_detail xt_dict_detail);
	 /**
	*@Description: 根据主键更新记录
	*@param po
	*@return void
	
	*/
	 public void update(Xt_dict_detail xt_dict_detail);
	 /**
	*@Description: 根据主键删除记录
	*@param id
	*@return void
	
	*/
	 public void deleteByFomcat(String fomcat);
	 
	 /**
	  * 校验选项编码唯一性
	  * @param po
	  * @return int
	  * @
	  */
	 public int validateOption_idOnly(Xt_dict_detail po);
	 /**
	  * 修改上节点为非叶子节
	  * @param parent_code
	  * @
	  */
	 public void updtateParentLeaf(String parent_code);
	 /**
	  * 根据dict_sn是删除数据
	  * @param dict_sn
	  * @
	  */
	 public void deleteDictDetalByDict_SN(String dict_sn);
}
